package com.score.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.score.mapper.IDormMapper;
import com.score.pojo.TDorm;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DormServiceImpl {
    @Autowired
    private IDormMapper dormMapper;

    public List<TDorm> getDormByDnum(String dormNum) {
        QueryWrapper<TDorm> wrapper = new QueryWrapper<>();
        wrapper.eq("dorm_num",dormNum);
        return dormMapper.selectList(wrapper);
    }

}
